#include "base.h"

namespace l8
{

#if defined(ENABLE_LOGGING)
bool Logger::m_logging_enabled = false;


bool Logger::Setup()
{
    m_logging_enabled = true;
    return true;
}

void Logger::TearDown()
{
    m_logging_enabled = false;
}

// Emits an event with a string value -> (name, value).
void Logger::StringEvent(const char* name, const char* value)
{
    if (!Logger::logging_enabled())
    {
        ASSERT(!"logging is not enabled!");
        return;
    }
#if 0
    LogMessageBuilder msg;
    msg.Append("%s,\"%s\"\n", name, value);
    msg.WriteToLogFile();
#endif
}

#endif

} // namespace l8

